﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class DialogueAniStart : MonoBehaviour
{
    [Tooltip("(舍弃 用aniTrigger)初始化动画名")]
    public string aniName = "";
    [Tooltip("初始化trigger")]
    public string aniTrigger = "";
    // Start is called before the first frame update
    void Start()
    {
        Animator ani = gameObject.GetComponent<Animator>();
        if (ani && aniName != "")
        {
            ani.Play(aniName);
        }
    }
}
